<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class XcFactory extends Model
{
    protected $table = 'xc_factory';
    protected $guarded = ['id'];

    public static function GetXcModel()
    {
        $arra = [
            ['key' => 'qs', 'name' => '清水单价'],        
            ['key' => 'pm', 'name' => '泡沫单价'],        
            ['key' => 'xc', 'name' => '吸尘单价'],        
            ['key' => 'xs', 'name' => '洗手单价'],        
            ['key' => 'xd', 'name' => '消毒单价'],
        ];

        return $arra;
    }


    public function washmode(){
        return $this->hasMany('App\Models\XcFactoryWashMode', 'factory_id', 'id');
    }
}
